export interface Goods {
    id: number | null;
    type: string;
    name: string;
    kid: number;
    uid: number;
    tax: number;
    createDate: Date;
    createUser: string;
    updateDate: Date;
    updateUser: string;
    status: 0 | 1;
    price: number;
    code: string;
    stock: number
    actualPrice: number
    unique: string;
    kname: string
}

// 扩展类型验证（可选）
type ProductKeys = keyof Goods;

/**
 * 字段约束配置对象（可用于表单验证）
 */
export const ProductConstraints = {
    name: {maxLength: 255},
    createUser: {maxLength: 255},
    updateUser: {maxLength: 255},
    tax: {minimum: 0, maximum: 1},
    status: {enum: [0, 1]}
} as const;
